home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 716 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. From: "john (j.d.) hickin" <hickin@bnr.ca>
  2. Message-ID: <4i99r7$5mr@bmtlh10.bnr.ca>
  3. X-Original-Date: Thu, 14 Mar 1996 14:18:15 +0000
  4. Path: in1.uu.net!bounce-back
  5. Date: 14 Mar 96 16:46:10 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Subject: Re: Anyone considered inheritable friendship?
  8. Newsgroups: comp.std.c++
  9. Organization: Bell Northern Research
  10. X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715)
  11. X-Url: news:4i7qjr$gr7@mujibur.inmind.com
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMUhNeuEDnX0m9pzZAQFB5wF9GUxNAVIgQV3TKSGUGWMj2iKY8U1SVlMg
  14.     K/iNZuLeg4JIKcncJAKcR/s1OFFSODzy
  15.     =T6wo
  16.  
  17. |> I suggested once that the keyword "friends" should indicate that
  18.  
  19. class X {
  20. #ifdef X_FRIENDS
  21.    X_FRIENDS;
  22. #endif
  23. public:
  24. ..
  25. };
  26.  
  27. The above hack should let you develop a tightly-coupled hierarchy with
  28. minimal fuss until closure can be applied and the final friend declaration
  29. inserted in its place.
  30.  
  31. In my opinion a tightly-coupled framework must be finite a-priori.  I can't
  32. reconcile this requirement with that of inherited friendship.
  33.  
  34. --
  35. John Hickin      Nortel Technology, Montreal, Quebec
  36. (514) 765-7924   hickin@bnr.ca
  37. ---
  38. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  39. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  40. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  41. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  42. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  43.